﻿<phone:PhoneApplicationPage 
    x:Class="SLARToolKitWinPhoneSample.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="480"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    shell:SystemTray.IsVisible="False"
   >

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <StackPanel x:Name="TitlePanel" Grid.Row="0" >
            <TextBlock Text="Scan marker to start." Style="{StaticResource PhoneTextNormalStyle}" Margin="12,10"/>

        </StackPanel>

        <Grid x:Name="ContentPanel" Margin="0,30,0,0" Width="480" Height="750">
            <Grid Name="CompositionGrid" RenderTransformOrigin="0.5, 0.5" >
                <Rectangle Name="Viewport" Stroke="White" StrokeThickness="2" />

                <Canvas Name="Show" Width="400" Height="600">
                    <Grid x:Name="LayoutRoot2" Background="Transparent">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="130"/>
                            <ColumnDefinition Width="130"/>
                            <ColumnDefinition Width="130"/>

                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="130"/>
                            <RowDefinition Height="130"/>
                            <RowDefinition Height="130"/>
                            <RowDefinition/>
                        </Grid.RowDefinitions>


                        <Button Name="Img" Click="Button_Click" BorderThickness="0" Background="Transparent" RenderTransformOrigin="0.5,0.5" Grid.Column="2">


                            <Image Source="data/ala.png" RenderTransformOrigin="0.5,0.5">
                                <Image.RenderTransform>
                                    <CompositeTransform Rotation="90"/>
                                </Image.RenderTransform>
                            </Image>



                        </Button>
                        <Button Name="Img2" Click="Button_Click2" BorderThickness="0" Background="Transparent" RenderTransformOrigin="0.5,0.5" Grid.Column="2" Grid.Row="1">
                            <Image Source="data/beverage.png" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding="Auto" Grid.Column="1">
                                <Image.RenderTransform>
                                    <CompositeTransform Rotation="90"/>
                                </Image.RenderTransform>
                            </Image>
                        </Button>
                        <Button Name="Img3" Click="Button_Click3" BorderThickness="0" Background="Transparent" RenderTransformOrigin="0.5,0.5" Grid.Column="1">
                            <Image Source="data/BMI.png" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding="Auto" Grid.Column="1" Height="85" Width="85">
                                <Image.RenderTransform>
                                    <CompositeTransform Rotation="90"/>
                                </Image.RenderTransform>
                            </Image>
                        </Button>
                        <Button Name="Img4" Click="Button_Click4" BorderThickness="0" Background="Transparent" RenderTransformOrigin="0.5,0.5" Grid.Column="1" Grid.Row="1">
                            <Image Source="data/box.png" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding="Auto"   HorizontalAlignment="Right" VerticalAlignment="Center" Height="108" Stretch="Fill" Width="104">
                                <Image.RenderTransform>
                                    <CompositeTransform Rotation="90"/>
                                </Image.RenderTransform>
                            </Image>
                        </Button>
                        <Button Name="Img5" Click="Button_Click5" BorderThickness="0" Background="Transparent" RenderTransformOrigin="0.5,0.5" Grid.Column="2" Grid.Row="2">
                            <Image Source="data/des.png" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding="Auto"   HorizontalAlignment="Right" VerticalAlignment="Center" Height="108" Stretch="Fill" Width="96">
                                <Image.RenderTransform>
                                    <CompositeTransform Rotation="90"/>
                                </Image.RenderTransform>
                            </Image>
                        </Button>

                    </Grid>

                </Canvas>
            </Grid>

        </Grid>




    </Grid>

</phone:PhoneApplicationPage>